balance_national_model <- lm(treat~pop+ median.age. + total.population..male + total.population..foreign.born + population.25.years.and.over..high.school.graduate..includes.equivalency. + actual_all_crimes5yr + officers_assaulted5yr +total.population..not.hispanic.or.latino..white.alone + total.population..not.hispanic.or.latino..american.indian.and.alaska.native.alon_share
							 + total.population..not.hispanic.or.latino..asian.alone_share + total.population..not.hispanic.or.latino..black.or.african.american.alone_share + total.population..not.hispanic.or.latino..native.hawaiian.and.other.pacific.isla_share + total.population..hispanic.or.latino_share + tot_clr_murder5yr +  tot_clr_index_violent5yr + tot_clr_index_property5yr + two_party_trump_pct,data = ag[ag$state != 'NJ',])

balance_national_model_robust <- coeftest(balance_national_model, vcov.=vcovHC(balance_national_model, type="HC1")) 

stargazer(balance_national_model,
		  type = "latex", 
		  digits=2, 
		  star.cutoffs = c(0.05, 0.01, 0.001), 
		  intercept.bottom = FALSE, 
		  se = gaze.coeft(list(balance_national_model_robust)), 
		  keep.stat = c("rsq", "n", "f"), 
		  dep.var.labels = "Assigned to Ranking Treatment",
		  covariate.labels = c("Intercept", "Population","Median Age", "Male population", "Foreign born population", "% > 25 with high school or more", "Total crimes", "Officers assaulted", "White population", "Native American/Alaskan Native population", "Asian Population", "African American population", "Hawaiian and Pacific Islander population", "Hispanic Population", "Murder clearance rate", "Violent crime clearance rate", "Property crime clearance rate", "Trump vote share (two party)"),
		  out="results/tabled2.tex")